

import { AmbientLight, Object3D, PointLight } from 'three'
//灯光打包导出
export const lightList: Object3D[] = []

//创建环境光
const ambientLight: AmbientLight = new AmbientLight('rgb(255,255,255)', 0.5)
//点光源   光源颜色 强度 距离 衰减
export const pointLight: PointLight = new PointLight('rgb(255,255,255)', 0.7, 200, 0.1)
//设置点光源位置
pointLight.position.y = 40

//输出灯光
lightList.push(ambientLight, pointLight)